package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    //分页
    List<Permission> queryPage(QueryObject qo);

    //查所有表达式
    List<String> selectByExp();

    //根据角色id查中间表在查对应的权限名称
    List<Permission>queryByRid(Long id);

    //根据员工id查权限表达式集合
    List<String> queryExpByEid(Long id);
}